@import tool.ReportPojo.ReportData
@import views.user.report.IndexTool._
@(resultPath: String, i: Int)(implicit data: ReportData)
<p class="paragraph">
	In this analysis, confounders from file confounders will be taken into account using partial correlations.
</p>

	@for(j <- data.outerData.extraDatas.indices) {
		<h5 class="titleLevel4">@(i + 1).
			@(getParCor2Index(i)).@(j + 1) Partial Correlation Analysis with Data from @(data.outerData.extraDatas(j))
		</h5>
		<p class="paragraph">
			Partial correlation analysis between differential metabolites with data from @(data.outerData.extraDatas(j)) is shown below.
		</p>
		<p class="paragraph">
					Partial correlation analysis heatmap is shown in Figure @(i + 1)-@getParCorImageIndex(i, j)
								</p>
		<p class="paragraph">
			Partial correlation analysis r value is shown in
			<a href="@(resultPath)Treatment/@(data.treats(i))/@(data.resultDatas(i).corDir)/Spearman_Partial/@getAndDir(i)/@(data.outerData.extraDatas(j))/Inter_r_Matrix.csv">
					Inter_r_Matrix.csv
			</a>
			<a href="@(resultPath)Treatment/@(data.treats(i))/@(data.resultDatas(i).corDir)/Spearman_Partial/@getAndDir(i)/@(data.outerData.extraDatas(j))" target="_blank"><span class="fa fa-folder-open"></span></a>
		</p>
		<p class="paragraph">
			Partial correlation analysis P value is shown in
			<a href="@(resultPath)Treatment/@(data.treats(i))/@(data.resultDatas(i).corDir)/Spearman_Partial/@getAndDir(i)/@(data.outerData.extraDatas(j))/Inter_P_Matrix.csv">
					Inter_P_Matrix.csv
			</a>
			<a href="@(resultPath)Treatment/@(data.treats(i))/@(data.resultDatas(i).corDir)/Spearman_Partial/@getAndDir(i)/@(data.outerData.extraDatas(j))" target="_blank"><span class="fa fa-folder-open"></span></a>
		</p>
		<p class="paragraph">
			Partial correlation analysis FDR value is shown in
			<a href="@(resultPath)Treatment/@(data.treats(i))/@(data.resultDatas(i).corDir)/Spearman_Partial/@getAndDir(i)/@(data.outerData.extraDatas(j))/Inter_FDR_Matrix.csv">
					Inter_FDR_Matrix.csv
			</a>
			<a href="@(resultPath)Treatment/@(data.treats(i))/@(data.resultDatas(i).corDir)/Spearman_Partial/@getAndDir(i)/@(data.outerData.extraDatas(j))" target="_blank"><span class="fa fa-folder-open"></span></a>
		</p>
		<p class="paragraph">
			Based on partial correlation analysis result, partial correlation pairs with P < @(data.configDatas(i).corP) and |r| > @(data.configDatas(i).cor) is selected and saved for network plotting in Cytoscape.
		</p>
		<p class="paragraph">
			Edge information for network plotting is stored in
			<a href="@(resultPath)Treatment/@(data.treats(i))/@(data.resultDatas(i).corDir)/Spearman_Partial/@getAndDir(i)/@(data.outerData.extraDatas(j))/Network_Edges_for_Cytoscape.csv">
					Network_Edges_for_Cytoscape.csv
			</a>
			<a href="@(resultPath)Treatment/@(data.treats(i))/@(data.resultDatas(i).corDir)/Spearman_Partial/@getAndDir(i)/@(data.outerData.extraDatas(j))" target="_blank"><span class="fa fa-folder-open"></span></a>
		</p>
		<p class="paragraph">
			Node information for network plotting is stored in
			<a href="@(resultPath)Treatment/@(data.treats(i))/@(data.resultDatas(i).corDir)/Spearman_Partial/@getAndDir(i)/@(data.outerData.extraDatas(j))/Network_Nodes_for_Cytoscape.csv">
					Network_Nodes_for_Cytoscape.csv
			</a>
			<a href="@(resultPath)Treatment/@(data.treats(i))/@(data.resultDatas(i).corDir)/Spearman_Partial/@getAndDir(i)/@(data.outerData.extraDatas(j))" target="_blank"><span class="fa fa-folder-open"></span></a>
		</p>
		<div class="noInNewPage">
			<p class="name_table">
				Figure @(i + 1)-@getParCorImageIndex(i, j) Partial Correlation Analysis Heatmap
			</p>
			<p class="center">
				<img class="wid2" src="@(resultPath)Treatment/@(data.treats(i))/@(data.resultDatas(i).corDir)/Spearman_Partial/@getAndDir(i)/@(data.outerData.extraDatas(j))/Inter_Correlation_Heatmap.png" />
			</p>
		</div>
	}

